package ca.cbc;

import ca.cbc.security.*;
import java.util.*;
import java.sql.SQLException;

public class Main {
    public static void main(String[] args){

		System.out.println("This Main class is only used to ensure that the database connectivity is working");
		System.out.println("");

		String s = "root";
		String p = "root";
		AuthDBData db = null;

		try {
			db = new AuthDBData();
			if(db.authenticate(s,p)) {
				System.out.println("The database connection and user authentication completed successfully");
			} else {
				System.out.println("There was an error connecting to the database");
			}
		} catch(SQLException e) {
				System.out.println("There was an error connecting to the database");
		}

    }
}
